package com.kilman.logger.provider;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import com.kilman.logger.log.control.ManagedLog;

public class ManagedLogsUtils {

    public static Map<Integer, String> toWebMap(Map<Integer, ManagedLog> managedLogs) {
        Map<Integer, String> map = new HashMap<Integer, String>();
        
        for (Entry<Integer, ManagedLog> entry : managedLogs.entrySet()) {
            map.put(entry.getKey(), entry.getValue().getName());
        }
        
        return map;
    }
    
}
